import request from '@/utils/request';
import {stringify} from 'qs'
//获取
export function getPerson(params) {
    console.log(params,789)
  return request(`/person/getPerson?${stringify(params)}`);
}

//增加
export function writePerson(params) {
    
    return request(`/person/writePerson`,{
        method:'POST',
        body:JSON.stringify(params)
    });
}

//编辑
export function updatePerson(params) {
    return request(`/person/updatePerson`,{
        method:'POST',
        body:JSON.stringify(params)
    });
}